package subs;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JTextArea;

public class ControllerMouse implements MouseListener{
	
	MainView	vue;
	String last_clicked = "";

	public ControllerMouse(MainView vue1) {
		vue = vue1;
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		if (e.getComponent() == vue.debut_sub) {
			last_clicked = e.getComponent().getName();
		}
		
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		if (e.getComponent() == vue.debut_sub && e.getComponent().getName() != last_clicked) {
			System.out.println("test");
		}
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

}
